package rc.work.module.infra.service.onlyoffice;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;

import java.util.Map;

/**
 * onlyoffice Service 接口
 *
 * @author 默认
 */
public interface OnlyOfficeService {

    String save(Long fileId, String fileType,Long userId,String userName,HttpServletRequest request, HttpServletResponse response);
    Map<String,Object> createConfig(Long fileId, String fileType, HttpServletRequest request);
    ResponseEntity<Resource> getFile(Long fileId, String fileType);

    String saveNew(Long fileId, String fileType,Long userId,String userName,HttpServletRequest request, HttpServletResponse response);
    Map<String,Object> createConfigNew(Long fileId, String fileType, HttpServletRequest request);
    ResponseEntity<Resource> getFileNew(Long fileId, String fileType);
}